package com.lhk.appframework.factory;

import android.content.Context;

import com.lhk.appframework.engine.login.EngineUserLogin;
import com.lhk.appframework.engine.login.ImplEngineUserLoginDefault;
import com.lhk.appframework.engine.splash.EngineSplash;
import com.lhk.appframework.engine.splash.ImplEngineSplashDefault;

public class FactoryEngineDefault extends FactoryEngine {

	private static FactoryEngineDefault instance = null;
	private FactoryEngineDefault() {
		
	}
	
	public static FactoryEngineDefault getInstance(){
		if(instance == null){
			synchronized (FactoryEngineDefault.class) {
				if(instance == null){
					instance = new FactoryEngineDefault();
				}
			}
		}
		return instance;
	}

	@Override
	public EngineUserLogin createEngineUserLogin() {
		// TODO Auto-generated method stub
		return new ImplEngineUserLoginDefault();
	}

	@Override
	public EngineSplash createEngineSplash(Context context) {
		// TODO Auto-generated method stub
		return new ImplEngineSplashDefault(context);
	}
	
}
